<h1>Modules List</h1>

<table>
  <thead>
    <tr>
      <th>Id</th>
      <th>Name</th>
      <th>Description</th>
      <th>Subject</th>
      <th>Next</th>
      <th>Previous</th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($modules as $module): ?>
    <tr>
      <td><a href="<?php echo url_for('module/show?id='.$module->getId()) ?>"><?php echo $module->getId() ?></a></td>
      <td><?php echo $module->getName() ?></td>
      <td><?php echo $module->getDescription() ?></td>
      <td><?php echo $module->getSubjectId() ?></td>
      <td><?php echo $module->getNextId() ?></td>
      <td><?php echo $module->getPreviousId() ?></td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>

  <a href="<?php echo url_for('module/new') ?>">New</a>
